<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="index, follow, all" />
    <title>Imagine\Gd\Layers | Imagine API v1.2.5-dev</title>

            <link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../../css/bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="../../css/sami.css">
        <script src="../../js/jquery-1.11.1.min.js"></script>
        <script src="../../js/bootstrap.min.js"></script>
        <script src="../../js/typeahead.min.js"></script>
        <script src="../../sami.js"></script>
        <meta name="MobileOptimized" content="width">
        <meta name="HandheldFriendly" content="true">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
    
    
    </head>

    <body id="class" data-name="class:Imagine_Gd_Layers" data-root-path="../../">
            <div id="content">
        <div id="left-column">
                <div id="control-panel">
                <script>
            $('option[data-version="'+window.projectVersion+'"]').prop('selected', true);
        </script>
        <form id="search-form" action="../../search.html" method="GET">
            <span class="glyphicon glyphicon-search"></span>
            <input name="search"
                   class="typeahead form-control"
                   type="search"
                   placeholder="Search">
        </form>
    </div>

                <div id="api-tree"></div>

        </div>
        <div id="right-column">
                <nav id="site-nav" class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="../../index.html">Imagine API v1.2.5-dev</a>
            </div>
            <div class="collapse navbar-collapse" id="navbar-elements">
                <ul class="nav navbar-nav">
                    <li><a href="../../classes.html">Classes</a></li>
                                            <li><a href="../../namespaces.html">Namespaces</a></li>
                                        <li><a href="../../interfaces.html">Interfaces</a></li>
                    <li><a href="../../traits.html">Traits</a></li>
                    <li><a href="../../doc-index.html">Index</a></li>
                    <li><a href="../../search.html">Search</a></li>
                </ul>
            </div>
        </div>
    </nav>

                        <div class="namespace-breadcrumbs">
            <ol class="breadcrumb">
                <li><span class="label label-default">class</span></li>
                        <li><a href="../../Imagine.html">Imagine</a></li><li class="backslash">\</li><li><a href="../../Imagine/Gd.html">Gd</a></li><li class="backslash">\</li><li>Layers</li>
            </ol>
        </div>
                <div id="page-content">
                
    <div class="page-header">
        <h1>
            Layers
                
        </h1>
    </div>

    <p>    class
    <strong>Layers</strong>        extends <a href="../../Imagine/Image/AbstractLayers.html"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a>
</p>

        
    

    
    
    
    
            <h2>Methods</h2>

            <div class="container-fluid underlined">
                    <div class="row">
                <div class="col-md-2 type">
                    $this
                </div>
                <div class="col-md-8 type">
                    <a href="#method_add">add</a>(<a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a> $image)
        
                                            <p>Adds an image at the end of the layers stack.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_add"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    $this
                </div>
                <div class="col-md-8 type">
                    <a href="#method_set">set</a>(int $offset, <a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a> $image)
        
                                            <p>Set an image at offset.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_set"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    $this
                </div>
                <div class="col-md-8 type">
                    <a href="#method_remove">remove</a>(int $offset)
        
                                            <p>Removes the image at offset.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_remove"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a>
                </div>
                <div class="col-md-8 type">
                    <a href="#method_get">get</a>(int $offset)
        
                                            <p>Returns the image at offset.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_get"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    bool
                </div>
                <div class="col-md-8 type">
                    <a href="#method_has">has</a>(int $offset)
        
                                            <p>Returns true if a layer at offset is preset.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_has"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    $this
                </div>
                <div class="col-md-8 type">
                    <a href="#method_setClassFactory">setClassFactory</a>(<a href="../../Imagine/Factory/ClassFactoryInterface.html"><abbr title="Imagine\Factory\ClassFactoryInterface">ClassFactoryInterface</abbr></a> $classFactory)
        
                                            <p>Set the class factory instance to be used.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_setClassFactory"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    <a href="../../Imagine/Factory/ClassFactoryInterface.html"><abbr title="Imagine\Factory\ClassFactoryInterface">ClassFactoryInterface</abbr></a>
                </div>
                <div class="col-md-8 type">
                    <a href="#method_getClassFactory">getClassFactory</a>()
        
                                            <p>Get the class factory instance to be used.</p>                </div>
                <div class="col-md-2"><small>from&nbsp;<a href="../../Imagine/Image/AbstractLayers.html#method_getClassFactory"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a></small></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method___construct">__construct</a>(<a href="../../Imagine/Gd/Image.html"><abbr title="Imagine\Gd\Image">Image</abbr></a> $image, <a href="../../Imagine/Image/Palette/PaletteInterface.html"><abbr title="Imagine\Image\Palette\PaletteInterface">PaletteInterface</abbr></a> $palette, resource|GdImage $resource, int $initialOffset = 0)
        
                                            <p class="no-description">No description</p>
                                    </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_merge">merge</a>()
        
                                            <p>Merge layers into the original objects.</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    $this
                </div>
                <div class="col-md-8 type">
                    <a href="#method_coalesce">coalesce</a>()
        
                                            <p>Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in
the sequence.</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    $this
                </div>
                <div class="col-md-8 type">
                    <a href="#method_animate">animate</a>(string $format, int $delay, int $loops)
        
                                            <p>Animates layers.</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_current">current</a>()
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_key">key</a>()
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_next">next</a>()
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_rewind">rewind</a>()
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_valid">valid</a>()
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_count">count</a>()
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetExists">offsetExists</a>($offset)
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetGet">offsetGet</a>($offset)
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetSet">offsetSet</a>($offset, $value)
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetUnset">offsetUnset</a>($offset)
        
                                            <p>{@inheritdoc}</p>                </div>
                <div class="col-md-2"></div>
            </div>
            </div>


        <h2>Details</h2>

            <div id="method-details">
                    <div class="method-item">
                    <h3 id="method_add">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_add"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 30</div>
        <code>                    $this
    <strong>add</strong>(<a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a> $image)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Adds an image at the end of the layers stack.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a></td>
                <td>$image</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>$this</td>
            <td></td>
        </tr>
    </table>

            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_add"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::add</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_set">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_set"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 42</div>
        <code>                    $this
    <strong>set</strong>(int $offset, <a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a> $image)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Set an image at offset.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>int</td>
                <td>$offset</td>
                <td></td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a></td>
                <td>$image</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>$this</td>
            <td></td>
        </tr>
    </table>

            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td></td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Exception/InvalidArgumentException.html"><abbr title="Imagine\Exception\InvalidArgumentException">InvalidArgumentException</abbr></a></td>
                <td></td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Exception/OutOfBoundsException.html"><abbr title="Imagine\Exception\OutOfBoundsException">OutOfBoundsException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_set"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::set</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_remove">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_remove"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 54</div>
        <code>                    $this
    <strong>remove</strong>(int $offset)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Removes the image at offset.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>int</td>
                <td>$offset</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>$this</td>
            <td></td>
        </tr>
    </table>

            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td></td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Exception/InvalidArgumentException.html"><abbr title="Imagine\Exception\InvalidArgumentException">InvalidArgumentException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_remove"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::remove</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_get">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_get"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 66</div>
        <code>                    <a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a>
    <strong>get</strong>(int $offset)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Returns the image at offset.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>int</td>
                <td>$offset</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../Imagine/Image/ImageInterface.html"><abbr title="Imagine\Image\ImageInterface">ImageInterface</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td></td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Exception/InvalidArgumentException.html"><abbr title="Imagine\Exception\InvalidArgumentException">InvalidArgumentException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_get"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::get</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_has">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_has"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 76</div>
        <code>                    bool
    <strong>has</strong>(int $offset)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Returns true if a layer at offset is preset.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>int</td>
                <td>$offset</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>bool</td>
            <td></td>
        </tr>
    </table>

            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_has"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::has</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_setClassFactory">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_setClassFactory"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 86</div>
        <code>                    $this
    <strong>setClassFactory</strong>(<a href="../../Imagine/Factory/ClassFactoryInterface.html"><abbr title="Imagine\Factory\ClassFactoryInterface">ClassFactoryInterface</abbr></a> $classFactory)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Set the class factory instance to be used.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Factory/ClassFactoryInterface.html"><abbr title="Imagine\Factory\ClassFactoryInterface">ClassFactoryInterface</abbr></a></td>
                <td>$classFactory</td>
                <td></td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>$this</td>
            <td></td>
        </tr>
    </table>

            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Factory/ClassFactoryAwareInterface.html#method_setClassFactory"><abbr title="Imagine\Factory\ClassFactoryAwareInterface">ClassFactoryAwareInterface</abbr>::setClassFactory</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_getClassFactory">
        <div class="location">in <a href="../../Imagine/Image/AbstractLayers.html#method_getClassFactory"><abbr title="Imagine\Image\AbstractLayers">AbstractLayers</abbr></a> at         line 98</div>
        <code>                    <a href="../../Imagine/Factory/ClassFactoryInterface.html"><abbr title="Imagine\Factory\ClassFactoryInterface">ClassFactoryInterface</abbr></a>
    <strong>getClassFactory</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Get the class factory instance to be used.</p>                                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td><a href="../../Imagine/Factory/ClassFactoryInterface.html"><abbr title="Imagine\Factory\ClassFactoryInterface">ClassFactoryInterface</abbr></a></td>
            <td></td>
        </tr>
    </table>

            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Factory/ClassFactoryAwareInterface.html#method_getClassFactory"><abbr title="Imagine\Factory\ClassFactoryAwareInterface">ClassFactoryAwareInterface</abbr>::getClassFactory</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method___construct">
        <div class="location">at         line 51</div>
        <code>                    
    <strong>__construct</strong>(<a href="../../Imagine/Gd/Image.html"><abbr title="Imagine\Gd\Image">Image</abbr></a> $image, <a href="../../Imagine/Image/Palette/PaletteInterface.html"><abbr title="Imagine\Image\Palette\PaletteInterface">PaletteInterface</abbr></a> $palette, resource|GdImage $resource, int $initialOffset = 0)
        </code>
    </h3>
    <div class="details">
            
    

                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Gd/Image.html"><abbr title="Imagine\Gd\Image">Image</abbr></a></td>
                <td>$image</td>
                <td></td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Image/Palette/PaletteInterface.html"><abbr title="Imagine\Image\Palette\PaletteInterface">PaletteInterface</abbr></a></td>
                <td>$palette</td>
                <td></td>
            </tr>
                    <tr>
                <td>resource|GdImage</td>
                <td>$resource</td>
                <td></td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$initialOffset</td>
                <td></td>
            </tr>
            </table>

            
            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_merge">
        <div class="location">at         line 68</div>
        <code>                    
    <strong>merge</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Merge layers into the original objects.</p>                                                </div>
                <div class="tags">
            
            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_merge"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::merge</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_coalesce">
        <div class="location">at         line 77</div>
        <code>                    $this
    <strong>coalesce</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Coalesce layers. Each layer in the sequence is the same size as the first and composited with the next layer in
the sequence.</p>                                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>$this</td>
            <td></td>
        </tr>
    </table>

            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/NotSupportedException.html"><abbr title="Imagine\Exception\NotSupportedException">NotSupportedException</abbr></a></td>
                <td></td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_coalesce"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::coalesce</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_animate">
        <div class="location">at         line 87</div>
        <code>                    $this
    <strong>animate</strong>(string $format, int $delay, int $loops)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>Animates layers.</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>string</td>
                <td>$format</td>
                <td>The output output format</td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$delay</td>
                <td>The delay in milliseconds between two frames</td>
            </tr>
                    <tr>
                <td>int</td>
                <td>$loops</td>
                <td>The number of loops, 0 means infinite</td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>$this</td>
            <td></td>
        </tr>
    </table>

            
                            <h4>Exceptions</h4>

                    <table class="table table-condensed">
                    <tr>
                <td><a href="../../Imagine/Exception/InvalidArgumentException.html"><abbr title="Imagine\Exception\InvalidArgumentException">InvalidArgumentException</abbr></a></td>
                <td>In case an invalid argument is provided</td>
            </tr>
                    <tr>
                <td><a href="../../Imagine/Exception/RuntimeException.html"><abbr title="Imagine\Exception\RuntimeException">RuntimeException</abbr></a></td>
                <td>In case the driver fails to animate</td>
            </tr>
            </table>

            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            <a href="../../Imagine/Image/LayersInterface.html#method_animate"><abbr title="Imagine\Image\LayersInterface">LayersInterface</abbr>::animate</a>
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_current">
        <div class="location">at         line 97</div>
        <code>                    
    <strong>current</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \Iterator::current()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_key">
        <div class="location">at         line 107</div>
        <code>                    
    <strong>key</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \Iterator::key()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_next">
        <div class="location">at         line 117</div>
        <code>                    
    <strong>next</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \Iterator::next()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_rewind">
        <div class="location">at         line 127</div>
        <code>                    
    <strong>rewind</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \Iterator::rewind()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_valid">
        <div class="location">at         line 137</div>
        <code>                    
    <strong>valid</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \Iterator::valid()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_count">
        <div class="location">at         line 147</div>
        <code>                    
    <strong>count</strong>()
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \Countable::count()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetExists">
        <div class="location">at         line 157</div>
        <code>                    
    <strong>offsetExists</strong>($offset)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td></td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \ArrayAccess::offsetExists()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetGet">
        <div class="location">at         line 167</div>
        <code>                    
    <strong>offsetGet</strong>($offset)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td></td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \ArrayAccess::offsetGet()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetSet">
        <div class="location">at         line 181</div>
        <code>                    
    <strong>offsetSet</strong>($offset, $value)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td></td>
            </tr>
                    <tr>
                <td></td>
                <td>$value</td>
                <td></td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \ArrayAccess::offsetSet()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetUnset">
        <div class="location">at         line 191</div>
        <code>                    
    <strong>offsetUnset</strong>($offset)
        </code>
    </h3>
    <div class="details">
            
    

                    <div class="method-description">
                                    <p>{@inheritdoc}</p>                                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td></td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
                                            \ArrayAccess::offsetUnset()
                                    </td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
            </div>

    
            </div>
                <div id="footer">
        Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.
    </div>

        </div>
    </div>
    </body>

</html>
